<?php
session_start();
$user_mid = $_SESSION['mid'];

if(!$user_mid){
    echo "<script language='javascript'>alert('请先登录！');location='/login';</script>";
}


?>